<?php
/**
 * members plugin controller
 *
 * 회원 플러그인 컨트롤러
 *
 * @copyright Copyright (c) 2010 ICMS Inc, Seunghyun Yang
 * Created on 2010. 01. 01.
 * @author Seunghyun Yang <alvajini@gmail.com>
 * @package plugins
 * @subpackage members
 * @category controllers
 * @version 1.0
 */

class Worker extends Plugin {

	function __construct() {
		//parent::__construct();
		//$this->CI = get_instance();
		//$this->CI->load->model(array('contents_model','board_model','common_model','setting_model'));
		//$this->CI->load->library('form_validation');
		/*$this->CI->load->module_model('members', 'members_m');
		$this->CI->load->model('admin_program_m');
		$this->CI->load->model('admin_config_m');
		
		$this->CI->load->library('xml_reader');
		// email models 부르기
		$this->CI->load->module_model('email', 'admin_setup_m');*/
	}

	function run($data = array ()) {
		/*$data['admin_no'] = ADMIN_NO;
		$data['module_type'] = "plugin";
		$data['module_directory'] = "members";
		$data['module_info'] = $this->CI->admin_program_m->module_info($data);
		$data['detail_xml'] = unserialize($data['module_info']['detail_xml']);

		$data['configs'] = $data['detail_xml']['configs'];
		$data['add_configs'] = $data['detail_xml']['add_configs'];
		$data['skin'] = $data['detail_xml']['default_skin'];
		$data['skin_dir'] = "plugins/" . $data['module_directory'] . "/views/" . $data['skin'];*/
		$data['message'] = '플러그인 컨트롤이야';
		//$data['CI'] = & get_instance();
		$data['skin'] = null;
		$data['view'] = 'test_view';
		$CI = get_instance();
		//$query = $CI->common_model->select_child_code(1);
		return Worker::$data['function']($data);
		//return Plugin::render($data);
	}

	function worker_list($data = array ()) {
		$CI = get_instance();
		
		$CI->load->module_model('worker', 'worker_model');
		//$CI->load->model('seo_model');
		$info = $CI->worker_model->select_seo();
		$data['view'] = "test_view";
		return Plugin::render($data);
	}

	

}
/* End of file members.php */
/* Location:  /plugins/members/controllers/members.php */
?>